<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="org.pr.logoupdate.util.Constant" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Logo加工</title>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" media="screen" />
</head>
<body>
<p>&nbsp;</p>
<div class="container">
<form action="servlet/logoUpload" method="POST" enctype="multipart/form-data">
<div class="form-group">
    <label for="fileupload">上传你的头像，试试</label>
    <input type="file" class="form-control" id="fileupload" 
    placeholder="请上传你的头像" name="logo">
    <%
    String error = (String)request.getSession().getAttribute(
    		Constant.PAGE1_ERROR);
    	if (error != null && !error.trim().equals("")) {
    		request.getSession().removeAttribute(Constant.PAGE1_ERROR);
    	
    %>
    		<p class="bg-danger"><%= error %></p>
    	<% } %>
  </div>

<button type="submit" class="btn btn-primary">提交</button>
</form>
</div>
</body>
</html>